﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dpdw.Structure.AdapterPattern
{
    public class TurkeyAdaper : Duck
    {
        private Turkey turkey;

        public TurkeyAdaper(Turkey turkey)
        {
            this.turkey = turkey;
        }

        public void Quack()
        {
            this.turkey.Gobble();
        }

        public void Fly()
        {
            this.turkey.Fly();
        }
    }
}
